<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>el隐式对象</title>
</head>
<body>
${pageContext }
<hr>

<!--  从指定page域中查找数据-->
<%
pageContext.setAttribute("name", "aaa");
%>
${pageScope.name }
<hr>
<!--request域  -->
<%
request.setAttribute("name", "request");
%>
${requestScope.name }
<!-- 获取请求参数 -->
${param.name }

<form action="${pageContext.request.contextPath }/RegisterServlet" method="post">

<input type="text" name="username"  value="${param.username } ">
<input type="submit" value="注册">
</form>
<hr>
${paramValues.like[0] }<!-- map("",String[]) -->
${paramValues.like[1] }

<hr>
<!-- 获得头信息 -->
${header.Accept }
${header["Accept-Encoding"] }

<hr>
<!--  获取客户机提交的cookie-->
${cookie.JSESSIONID.value }<!--  保存所有cookie的map,获取值的话，.value-->
<!--获取web工程初始化参数  -->
${initParam.root }


</body>
</html>